package net.jforum.util.htmlText;

import java.io.FileNotFoundException;

public class Test {
    public static void main(String[] args) throws FileNotFoundException {
    	
        String test = "" +
        		"<html>" +
        		"<title>a </title>" +
        		"<body>" +
        		"<img src='fuckyou'>" +
        		"</img>" +
        		"<a href='caoniniang'>" +
        		"aaaaaa我操你娘，我靠<span style='color:red;'>我靠</span> 向咋样" +
        		"你个废物"+"</a>" +
        				"</bodsy>" +
        				"</html>";
        long tmp;
        tmp = System.currentTimeMillis();
        System.out.println(tmp);
        System.out.println(HtmlUtils.getText(test, 12));
        System.out.println(System.currentTimeMillis() - tmp);
        tmp = System.currentTimeMillis();
        System.out.println(HtmlUtils.textFromHTML(test));
        System.out.println(System.currentTimeMillis() - tmp);
        tmp = System.currentTimeMillis();
        System.out.println(HtmlUtils.getText(test));
        System.out.println(System.currentTimeMillis() - tmp);              
    }
}
